<%@ page language="java" import="java.util.*,
org.springframework.web.context.support.WebApplicationContextUtils,
current.security.init.SecurityService" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
	SecurityService securityService = (SecurityService)WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext()).getBean("securityService");
	 Map<String, String> urlAuthorities = null;
		try {
			urlAuthorities = securityService.queryAllMap();
		} catch (Exception e) {
			e.printStackTrace();
		}
		request.getSession().getServletContext().setAttribute("urlAuthorities", urlAuthorities);
		out.print("刷新成功！！");
%>
<script type="text/javascript">
	setTimeout("location.href='<%=basePath%>userManager/getAllRole.action';",1000);
</script>
